import 'package:flutter/material.dart';
import 'package:get/get.dart';

class Test_PercentSized extends StatefulWidget {
  const Test_PercentSized({super.key});

  @override
  State<Test_PercentSized> createState() => _Test_PercentSizedState();
}

class _Test_PercentSizedState extends State<Test_PercentSized> {
  double w = 50;
  double h = 50;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(title: const Text('Test_PercentSized')),
        body: Column(children: [
          ElevatedButton(
              onPressed: () {
                print('JtTag:width:${Get.width}');
                print('JtTag:height:${Get.height}');
              },
              child: Text('查看设备宽高')),
        ]));
  }
}
